#include "threadpool.hpp"

int add(int num1, int num2)
{
    return num1 + num2;
}

int main()
{
    ThreadPool pool(2);
    for (int i = 0; i < 10; i++)
    {
        std::future<int> fu = pool.Push(add, 11, i);
        std::cout << fu.get() << std::endl;
    }
    pool.Stop();
    return 0;
}